package cn.shop.dys.constant;

/**
 * 基本常量
 * Created by jian on 2016/4/20.
 */
public interface CommonConstant {
  //  public static String HOST = "http://192.168.22.2:8080/market";
    // public static String HOST = "http://localhost/market";
   //  public static String HOST = "http://192.168.56.1:8080/market";
 //    public static String HOST = "http://192.168.56.1:80/market";





   // public static String HOST = "http://192.168.175.2:8080/market";
  //public static String HOST = "http://10.0.2.2:8080/market";
   public static String HOST = "http://192.168.191.2:8080/market/";
//  public static String HOST = "http://10.0.2.2:8080/market";
 //public static final String HOST= "http://192.168.175.2:8080/market";
//    public static String HOST = "http://192.168.56.1:8080/market";
    //public static String HOST = "http://localhost/market";
    //public static String HOST = "http://192.168.56.1/market";
    //public static String HOST = "http://192.168.22.60:8080/market";
    public static final String LIST_BUY_PRO_KEY = "list_buy_item_produ_key";//限时抢购传intent到商品详情
    public static String HOST_SEARCH = HOST + "/search";
    public static String HOST_SEARCH_RECOMMEND = HOST + "/search/recommend";
    public static int DEFAULT_PAGE = 0;
    public static int DEFAULT_PAGE_NUM = 10;
    public static final String ERROR_CODE = "error_code";
    //用户名不存在或密码错误
    String ERROR_CODE_NOT_EXIST_USER = "1530";
    //请求头没有userid错误码
    String ERROR_CODE_NO_USERID_ON_REQUEST_HEAD = "1531";
    //该用户名已经被注册过了
    String ERROR_CODE_USERNAME_BEEN_REGISTERED = "1532";
    //没有登录或则需要重新登录
    String ERROR_CODE_UNLOGIN = "1533";
    //请求参数错误或缺失
    String ERROR_CODE_REQUEST_PARAMETER_ERROR = "1534";
    //当前商品已经添加过收藏
    String ERROR_CODE_HAD_ADD_FAVORITES = "1535";
    //商品已经添加收藏失败
    String ERROR_CODE_FAILER_ADD_FAVORITES = "1536";
    //取消订单失败
    String ERROR_CODE_FAILER_CANCLE_ORDER = "1537";
    //没有该订单详情
    String ERROR_CODE_NO_ORDER_DETAIL = "1538";
    String HOST_LOGOUT = HOST + "/logout";
    String CART_TO_BILL = "cartToBill";
    String HOST_ORDER_LIST = HOST + "/orderlist";

    // public static String HOST_ZHANGJUN = "http://192.168.203.1:8080/market";
//    public static String HOST_ZHANGJUN = "http://192.168.56.1:8080/market";
    public static final String LIMITBUY_URL = HOST + "/limitbuy";//限时抢购
    //首页
    String HOME_URL = HOST + "/home";

    String HOST_ORDER_DETAIL = HOST + "/orderdetail";
    public static final String RECOMMEND_BRAND_URL = HOST + "/brand";
    int INDENT_TYPE_ALL = 0;
    int INDENT_TYPE_NOT_PAY = 1;
    int INDENT_TYPE_NOT_DELIVER_GOODS = 3;
    int INDENT_TYPE_NOT_RECEIVE_GOODS = 2;
    int INDENT_TYPE_NOT_EVALUATE = 4;
    int RECOMMEND_SEARCH_COUNT = 9;
    //刘路host


    String SCJ_URL = HOST + "/favorites";
    String HOST_ORDER_CANCEL = HOST + "/ordercancel";
    String CXKB_URL = HOST + "/topic";
    String HOST_LOGIN = HOST + "/login";
    String HOST_REGISTER = HOST + "/register";
    String HOST_ADDRESSDEFAULT = HOST + "/addressdefault";
    String HOST_ADDRESSSAVE = HOST + "/addresssave";
    String HOST_ADDRESSLIST = HOST + "/addresslist";
    String HOST_ADDRESSDELETE = HOST + "/addressdelete";
    //   int QUERY_INDENT_REQUEST_CODE = 15;
    int QUERY_INDENT_RESULT_CODE = 16;
    int QUERY_NOT_PAY_INDENT_REQUEST_CODE = 17;
    int QUERY_NOT_DELIVER_GOODS_INDENT_REQUEST_CODE = 18;
    int QUERY_ALL_INDENT_REQUEST_CODE = 15;
    int QUERY_NOT_RECEIVE_GOODS_INDENT_REQUEST_CODE = 19;
    int QUERY_NOT_EVALUATE_INDENT_REQUEST_CODE = 20;
    String HOST_USER_INFO = HOST + "/userinfo";
    String SINGLE_LIST_TYPE = "singleListType";
    String LIST_TYPE = "listType";
    String TYPE_ID = "id";
    String RECOMBRAND_BRANDID_KEY = "brand_id";//推荐品牌id
    public static final String product_CATEGORY = HOST+"/category";
//    String NEWPRODUCT_URL =HOST+"/newproduct" ;
//    String NEWPRODU_KEY ="newproduct_key" ;
    String NEWPRODUCT_URL = HOST + "/newproduct";
    String NEWPRODU_KEY = "newproduct_key";
    String PRODUCT_ID_KEY = "pId";
}
